#include <allegro.h>

#include "intro.h"
#include "consts.h"

engineStruct intro() {
  BITMAP * scr_image = load_bitmap("images/screen.bmp", NULL); 
  blit(scr_image, screen, 0, 0, 0, 0, GAME_W, GAME_H);
  // So we can either view or skip the intro
  int wtime = 3000;
  while(wtime > 0) {
    if ( key[KEY_SPACE] ) break;
    rest(1);
    --wtime;
  }
  clear_bitmap(screen);
  destroy_bitmap(scr_image);
  
  engineStruct comm;
  comm.mode = MODE_MENU;
  return comm;
}
END_OF_FUNCTION(intro);
